Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to create proxy on arbitrary connections #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mardy
Copy link
Contributor

@mardy mardy commented Nov 1, 2019

This allows, for example, the creation of a peer to peer D-Bus connection over a socket.

Comment on lines +17 to +38
static void create(const Glib::RefPtr<Gio::DBus::Connection> &connection,
Gio::DBus::ProxyFlags proxyFlags,
const std::string &name,
const std::string &objectPath,
const Gio::SlotAsyncReady &slot,
const Glib::RefPtr<Gio::Cancellable> &cancellable = {});
static void createForBus(Gio::DBus::BusType busType,
Gio::DBus::ProxyFlags proxyFlags,
const std::string &name,
const std::string &objectPath,
const Gio::SlotAsyncReady &slot,
const Glib::RefPtr<Gio::Cancellable> &cancellable = {});

static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createForBusFinish (const Glib::RefPtr<Gio::AsyncResult> &result);
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createFinish(const Glib::RefPtr<Gio::AsyncResult> &result);
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> create_sync(
const Glib::RefPtr<Gio::DBus::Connection> &connection,
Gio::DBus::ProxyFlags proxyFlags,
const std::string &name,
const std::string &objectPath,
const Glib::RefPtr<Gio::Cancellable> &cancellable = {});

static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createForBusFinish (const Glib::RefPtr<Gio::AsyncResult> &result);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe reorder so that "create()" and "createForBus()" methods are kept together (and in same order as in proxy.cpp.tmpl)?

@martin-ejdestig
Copy link
Contributor

Looks good to me except for minor nit.

@kursatkobya
Copy link
Contributor

Can you add a tag to commit message before merging please. looks good to me.

Copy link
Contributor

@kursatkobya kursatkobya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add commit message tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants